package cn.jinzhu.resilience4j;

import io.github.resilience4j.retry.annotation.Retry;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "provider")//,fallbackFactory = HelloServerFallBackFactory.class
public interface HelloSevice {
    @Retry(name = "retryA") //resilience4j 里面的retry重试   retryA 配置文件里面自定义的重试名称
    @GetMapping("/hello")
    String hello();
}
